package net.koodar.forge.system.dept.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import net.koodar.forge.mybatis.doman.BaseEntity;

/**
 * 部门表
 *
 * @author liyc
 */
@Data
@TableName("sys_dept")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Dept extends BaseEntity<Dept> {

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 上级部门
	 */
	@TableField("parent_id")
	private Long parentId;

	/**
	 * 部门名称
	 */
	@TableField("dept_name")
	private String deptName;

	/**
	 * 显示排序
	 */
	@TableField("`sort`")
	private Integer sort = 0;

}